package com.atguigu.eduservice.entity.vo;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.ArrayList;
import java.util.List;

/**
 * 课程 一级分类
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class OneSubject {

    private String id;
    private String title;

    /**
     * 一个一级分类有多个二级分类
     */
    private List<TwoSubject> children = new ArrayList<>();
}
